<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of PouzivatelType
 *
 * @author Jozef Kováč
 */
namespace Acme\MainBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;

class PouzivatelType extends AbstractType{
    
    public function buildForm(FormBuilderInterface $builder, array $options) {
        $builder->add('email','email', array (
                      'label'=>'Email*',
                      'max_length'=>'50',                      
                      //'error_bubbling'=>true,
                     ))
                ->add('meno','text',array(
                      'label'=>'Meno*',
                      'max_length'=>'30',                     
                      //'error_bubbling'=>true,
                     ))
                ->add('priezvisko','text',array(
                      'label'=>'Priezvisko*',
                      'max_length'=>'30',
                      //'error_bubbling'=>true,
                     ))
                ->add('ulica','text',array(
                      'label'=>'Ulica*',
                      'max_length'=>'30',
                      //'error_bubbling'=>true,
                     ))
                ->add('cislo','text', array (                     
                      'label'=>'Číslo*',
                      'max_length'=>'10',
                      //'error_bubbling'=>true,
                     ))
                ->add('mesto','text',array(
                      'label'=>'Mesto*',
                      'max_length'=>'50',
                      //'error_bubbling'=>true,
                     ))
                ->add('psc','text', array (
                      'label'=>'PSČ*',
                      'max_length'=>'5',
                      'error_bubbling'=>false,
                     ));
        parent::buildForm($builder, $options);
    }
    
    public function getName() {
        return 'pouzivatel';
    }
}

?>
